window.onload=function () {
    var mySwiper = new Swiper ('#swiper-1', {
        loop: true,
        autoplay: 3000,
        // 如果需要分页器
        pagination: '#pagination1',
        createPagination:'false',

        // 如果需要前进后退按钮
        nextButton: '.arrow-left',
        prevButton: '.arrow-left',
    });
    document.getElementById("swiper-button-next").onclick=function () {
        mySwiper.swipeNext();
    }
    document.getElementById("swiper-button-prev").onclick=function () {
        mySwiper.swipePrev();
    }


    var Swiper2 = new Swiper ('#swiper-2', {
        slidesPerView: 4,
        loop: true,
        grabCursor: true,
        autoplay: 3000,
        // 如果需要分页器
        createPagination:'false',

        // 如果需要前进后退按钮
        nextButton: '#next2',
        prevButton: '#prev2',
    });

    document.getElementById("next2").onclick=function () {
        Swiper2.swipeNext();
    }
    document.getElementById("prev2").onclick=function () {
        Swiper2.swipePrev();
    }

    var selected_li=document.querySelector(".max-wrap .nav .nav-table .selected");
    function gt_change(){
        if(selected_li.children[2]){
            selected_li.children[0].className=".gt .select";
        }
    }
    gt_change();
}
